package com.fortune.service;

import com.faneui.common.exception.BusinessException;
import com.fortune.dal.model.WorkDay;

import java.util.List;

public interface WorkDayService {

    /**
     * 工作日标识
     */
    public static final String work_day = "1" ;

    /**
     * 休息日标识
     */
    public static final String rest_day = "0" ;

    WorkDay queryByWorkDate(String workDate) throws BusinessException;

    List<WorkDay> queryByModel(WorkDay workDay) throws BusinessException ;

    boolean isWorkDay(String workDate) throws BusinessException ;

    WorkDay getNextWorkDay(String workDate) throws BusinessException;

    WorkDay getNextFirstWorkDay(String workdate) throws BusinessException;

    String getLastWorkDay(String naturalDay) throws BusinessException ;

    String get7DayLastWorkDay(String naturalDay) throws BusinessException ;

    String get1MonthLastWorkDay(String naturalDay) throws BusinessException ;

    String get3MonthLastWorkDay(String naturalDay) throws BusinessException ;

    String get6MonthLastWorkDay(String naturalDay) throws BusinessException ;

    String get1YearLastWorkDay(String naturalDay) throws BusinessException ;
}
